import request from '@/utils/request'

//1.条件查询带分页查询课程
export function getCourseList(page, limit, searchObj) {
    return request({
        url: `/edu/front_course/list/${page}/${limit}`,
        method: 'post',
        data: searchObj
    })
}

//2.查询所有课程分类    
export function getAllSubject() {
    return request({
        url: `/edu/front_course/subject`,
        method: 'get'
    })
};

//3.查询课程详情，包括描述、章节、小节等等
export function getCourseInfo(courseId) {
    return request({
        url: `/edu/front_course/info/${courseId}`,
        method: 'get'
    })
}


